﻿import QtQuick 2.15
import QtQuick.Controls 2.15

/*
  二维码料单界面
*/

Item {
    id:backGround
    width: screenWidth
    height: 1600

    Rectangle{
        anchors.fill: backGround
        color: "#00BFFF"
        border.width: 5
        border.color: "#F0F8FF"
    }

    // Component.onCompleted: {
    //     Cpp_QRProcess.sig_GetScannerResult.connect(getParameterSlot)
    // }

    // function getParameterSlot()
    // {
    //     // Cpp_QRProcess.getAllParameterFromSQL();
    //     testBtn.clicked()
    // }

    onVisibleChanged: {
        if(visible === true)
        {
            Cpp_Connect.pageNumber = 10
        }
    }

    Row {
        anchors.left: backGround.left
        anchors.leftMargin: 5
        anchors.top: backGround.top
        anchors.topMargin: 5
        Repeater{
            model:6

            Rectangle{
                width: index === 0 ? 110 : index === 1 ? 230 : index === 2 ? 150 : index === 3 ? 150 : index === 4 ? 230 : 200
                height: 60
                border.width: 1
                border.color: "#f0f8ff"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: 30
                    font.bold: true
                    color: "white"
                    text: index === 0 ? qsTr("序号") : index === 1 ? qsTr("料长") : index === 2 ? qsTr("左角度") :
                         index === 3 ? qsTr("右角度") : index === 4 ? qsTr("数量")  : qsTr("已切数量")

                    MouseArea{
                        anchors.fill: parent

                        onPressed: {
                            if( index === 5)
                            {
                                Cpp_Connect.write_modbus_rtu_Coils("142","1")
                            }
                        }

                        onReleased: {
                            if( index === 5)
                            {
                                Cpp_Connect.write_modbus_rtu_Coils("142","0")
                            }
                        }

                    }

                }

            }
        }
    }


    function  writeParameterIntoPL(index)
    {
        switch(index)
        {
        case 1:
            console.log("触发 第一行 批量写入程序")
            if(leftAngle01.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1640","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1640","1")
            }
            if(rightAngle01.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1641","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1641","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1600",m_Length01_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1680",count01_Text.text)
            break;
        case 2:
            console.log("触发 第二行 批量写入程序")
            if(leftAngle02.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1642","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1642","1")
            }
            if(rightAngle02.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1643","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1643","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1602",m_Length02_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1681",count02_Text.text)
            break;
        case 3:
            console.log("触发 第三行 批量写入程序")
            if(leftAngle03.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1644","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1644","1")
            }
            if(rightAngle03.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1645","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1645","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1604",m_Length03_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1682",count03_Text.text)
            break;
        case 4:
            console.log("触发 第四行 批量写入程序")
            if(leftAngle04.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1646","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1646","1")
            }
            if(rightAngle04.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1647","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1647","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1606",m_Length04_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1683",count04_Text.text)
            break;
        case 5:
            console.log("触发 第五行 批量写入程序")
            if(leftAngle05.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1648","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1648","1")
            }
            if(rightAngle05.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1649","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1649","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1608",m_Length05_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1684",count05_Text.text)
            break;
        case 6:
            console.log("触发 第六行 批量写入程序")
            if(leftAngle06.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1650","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1650","1")
            }
            if(rightAngle06.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1651","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1651","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1610",m_Length06_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1685",count06_Text.text)
            break;
        case 7:
            console.log("触发 第七行 批量写入程序")
            if(leftAngle07.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1652","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1652","1")
            }
            if(rightAngle07.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1653","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1653","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1612",m_Length07_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1686",count07_Text.text)
            break;
        case 8:
            console.log("触发 第八行 批量写入程序")
            if(leftAngle08.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1654","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1654","1")
            }
            if(rightAngle08.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1655","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1655","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1614",m_Length08_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1687",count08_Text.text)
            break;
        case 9:
            console.log("触发 第九行 批量写入程序")
            if(leftAngle09.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1656","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1656","1")
            }
            if(rightAngle09.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1657","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1657","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1616",m_Length09_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1688",count09_Text.text)
            break;
        case 10:
            console.log("触发 第十行 批量写入程序")
            if(leftAngle10.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1658","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1658","1")
            }
            if(rightAngle10.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1659","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1659","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1618",m_Length10_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1689",count10_Text.text)
            break;
        case 11:
            console.log("触发 第十一行 批量写入程序")
            if(leftAngle11.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1660","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1660","1")
            }
            if(rightAngle11.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1661","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1661","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1620",m_Length11_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1690",count11_Text.text)
            break;
        case 12:
            console.log("触发 第十二行 批量写入程序")
            if(leftAngle12.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1662","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1662","1")
            }
            if(rightAngle12.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1663","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1663","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1622",m_Length12_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1691",count12_Text.text)
            break;
        case 13:
            console.log("触发 第十三行 批量写入程序")
            if(leftAngle13.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1664","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1664","1")
            }
            if(rightAngle13.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1665","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1665","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1624",m_Length13_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1692",count13_Text.text)
            break;
        case 14:
            console.log("触发 第十四行 批量写入程序")
            if(leftAngle14.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1666","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1666","1")
            }
            if(rightAngle14.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1667","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1667","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1626",m_Length14_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1693",count14_Text.text)
            break;
        case 15:
            console.log("触发 第十五行 批量写入程序")
            if(leftAngle15.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1668","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1668","1")
            }
            if(rightAngle15.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1669","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1669","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1628",m_Length15_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1694",count15_Text.text)
            break;
        case 16:
            console.log("触发 第十六行 批量写入程序")
            if(leftAngle16.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1670","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1670","1")
            }
            if(rightAngle16.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1671","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1671","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1630",m_Length16_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1695",count16_Text.text)
            break;
        case 17:
            console.log("触发 第十七行 批量写入程序")
            if(leftAngle17.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1672","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1672","1")
            }
            if(rightAngle17.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1673","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1673","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1632",m_Length17_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1696",count17_Text.text)
            break;
        case 18:
            console.log("触发 第十八行 批量写入程序")
            if(leftAngle18.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1674","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1674","1")
            }
            if(rightAngle18.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1675","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1675","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1634",m_Length18_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1697",count18_Text.text)
            break;
        case 19:
            console.log("触发 第十九行 批量写入程序")
            if(leftAngle19.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1676","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1676","1")
            }
            if(rightAngle19.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1677","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1677","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1636",m_Length19_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1698",count19_Text.text)
            break;
        case 20:
            console.log("触发 第二十行 批量写入程序")
            if(leftAngle20.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1678","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1678","1")
            }
            if(rightAngle20.text === "45")
            {
                Cpp_Connect.write_modbus_rtu_Hold("1679","0")
            }
            else
            {
                Cpp_Connect.write_modbus_rtu_Hold("1679","1")
            }
            Cpp_Connect.write_modbus_rtu_Hold_F("1638",m_Length20_Text.text)
            Cpp_Connect.write_modbus_rtu_Hold("1699",count20_Text.text)
            break;
        default:
            break;
        }
    }


    // Column{
    //     anchors.top: backGround.top
    //     anchors.topMargin: 65
    //     anchors.left: backGround.left
    //     anchors.leftMargin: 5
    //     Repeater{
    //         model :20

    //         Rectangle{
    //             width: 1070
    //             height: 60

    //             Rectangle{
    //                 id:order
    //                 width: 110
    //                 height: 60
    //                 anchors.left: parent.left
    //                 anchors.verticalCenter: parent.verticalCenter
    //                 border.width: 1
    //                 border.color: "black"
    //                 color: focus ? "green" : "white"


    //                 property int currentIndex: -1

    //                 Text {      // 序号
    //                     anchors.centerIn: parent
    //                     font.pixelSize: 30
    //                     font.bold: true
    //                     text: (index+1)
    //                 }

    //                 MouseArea{
    //                     anchors.fill:parent

    //                     onClicked: {
    //                         parent.forceActiveFocus()
    //                         Cpp_Connect.write_modbus_rtu_Hold("77",(index+1).toString())
    //                         writeParameterIntoPL(index+1)
    //                         Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
    //                     }
    //                 }
    //             }
    //         }
    //     }
    // }

    Rectangle{
      anchors.top: backGround.top
      anchors.topMargin: 65
      anchors.left: backGround.left
      anchors.leftMargin: 5
      border.width: 1
      width: 110
      height: 1200
      color: "transparent"

      property string currentOrder : Cpp_Connect.QR_CurrentOrder

      Rectangle{    // 序号 1
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_01.text ? "green" : "white"

        Text{
          id: order_01
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "1"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_01.text)
            writeParameterIntoPL(1)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }

      Rectangle{    // 序号 2
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 60
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_02.text ? "green" : "white"

        Text{
          id: order_02
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "2"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_02.text)
            writeParameterIntoPL(2)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }

      Rectangle{    // 序号 3
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 120
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_03.text ? "green" : "white"

        Text{
          id: order_03
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "3"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_03.text)
            writeParameterIntoPL(3)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }

      Rectangle{    // 序号 4
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 180
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_04.text ? "green" : "white"

        Text{
          id: order_04
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "4"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_04.text)
            writeParameterIntoPL(4)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }
      Rectangle{    // 序号 5
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 240
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_05.text ? "green" : "white"

        Text{
          id: order_05
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "5"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_05.text)
            writeParameterIntoPL(5)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }
      Rectangle{    // 序号 6
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 300
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_06.text ? "green" : "white"

        Text{
          id: order_06
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "6"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_06.text)
            writeParameterIntoPL(6)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }

      Rectangle{    // 序号 7
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 360
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_07.text ? "green" : "white"

        Text{
          id: order_07
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "7"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_07.text)
            writeParameterIntoPL(7)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 8
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 420
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_08.text ? "green" : "white"

        Text{
          id: order_08
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "8"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_08.text)
            writeParameterIntoPL(8)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 9
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 480
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_09.text ? "green" : "white"

        Text{
          id: order_09
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "9"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_09.text)
            writeParameterIntoPL(9)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }

      }

      Rectangle{    // 序号 10
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 540
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_10.text ? "green" : "white"

        Text{
          id: order_10
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "10"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_10.text)
            writeParameterIntoPL(10)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 11
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 600
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_11.text ? "green" : "white"

        Text{
          id: order_11
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "11"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_11.text)
            writeParameterIntoPL(11)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 12
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 660
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_12.text ? "green" : "white"

        Text{
          id: order_12
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "12"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_12.text)
            writeParameterIntoPL(12)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 13
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 720
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_13.text ? "green" : "white"

        Text{
          id: order_13
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "13"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_13.text)
            writeParameterIntoPL(13)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 14
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 780
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_14.text ? "green" : "white"

        Text{
          id: order_14
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "14"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_14.text)
            writeParameterIntoPL(14)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 15
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 840
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_15.text ? "green" : "white"

        Text{
          id: order_15
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "15"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_15.text)
            writeParameterIntoPL(15)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 16
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 900
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_16.text ? "green" : "white"

        Text{
          id: order_16
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "16"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_16.text)
            writeParameterIntoPL(16)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 17
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 960
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_17.text ? "green" : "white"

        Text{
          id: order_17
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "17"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_17.text)
            writeParameterIntoPL(17)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 18
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 1020
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_18.text ? "green" : "white"

        Text{
          id: order_18
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "18"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_18.text)
            writeParameterIntoPL(18)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 19
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 1080
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_19.text ? "green" : "white"

        Text{
          id: order_19
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "19"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_19.text)
            writeParameterIntoPL(19)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

      Rectangle{    // 序号 20
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 1140
        width: 110
        height: 60
        border.width: 1
        color: parent.currentOrder === order_20.text ? "green" : "white"

        Text{
          id: order_20
          anchors.centerIn: parent
          font.pixelSize: 30
          font.bold: true
          color: "black"
          text: "20"
        }

        MouseArea{
          anchors.fill: parent

          onClicked: {
            Cpp_Connect.write_modbus_rtu_Hold("77",order_20.text)
            writeParameterIntoPL(20)
            Cpp_Connect.order_Clicked_Write_Data_Into_PLC();
          }
        }
      }

    }



    /////////////  第一行  /////////////
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 65
        width: 230
        height: 60
        border.width: 1

        Text {
            id:m_Length01_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LC_Value01
            text : Cpp_Connect.M_Length01_QR
            visible: true
        }

        TextInput{      // 第一行 料长输入框
            id:m_Length01_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(1,"LC_Value",m_Length01_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1600",m_Length01_Input.text)
                m_Length01_Text.visible = true
                m_Length01_Input.visible = false
            }
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length01_Input.forceActiveFocus()
                m_Length01_Input.text = m_Length01_Text.text
                m_Length01_Text.visible = false
                m_Length01_Input.visible = true
                m_Length01_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 65
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle01
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle01
            // color: Cpp_QRProcess.LeftAngle01 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle01_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle01_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle01 === "45")
                // {
                //     Cpp_QRProcess.saveData(1,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle01 === "90")
                // {
                //     Cpp_QRProcess.saveData(1,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle01.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1640","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1640","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 65
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle01
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle01
            // color: Cpp_QRProcess.RightAngle01 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle01_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle01_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle01 === "45")
                // {
                //     Cpp_QRProcess.saveData(1,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle01 === "90")
                // {
                //     Cpp_QRProcess.saveData(1,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle01.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1641","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1641","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 65
        width: 230
        height: 60
        border.width: 1

        Text {
            id: count01_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.Count01
            text: Cpp_Connect.Count01_QR
            visible: true
        }

        TextInput{      // 数量输入框
            id:count01_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(1,"Count",count_01_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1680",count01_Input.text)
                count01_Text.visible = true
                count01_Input.visible = false
            }

        }


        MouseArea{
            anchors.fill: parent

            onClicked: {
                count01_Input.forceActiveFocus()
                count01_Input.text = count01_Text.text
                count01_Text.visible = false
                count01_Input.visible = true
                count01_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 65
        width: 200
        height: 60
        border.width: 1

        Text {
            id:worked_Count01_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            text: Cpp_Connect.Worked_Count01_QR
            visible: true
        }

        TextInput{      // 已切数量
            id:worked_Count01_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1700",worked_Count01_Input.text)
                worked_Count01_Input.visible = false
                worked_Count01_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count01_Input.visible = true
                worked_Count01_Text.visible = false
                worked_Count01_Input.text = worked_Count01_Text.text
                worked_Count01_Input.forceActiveFocus()
                worked_Count01_Input.selectAll()
            }
        }

    }

    /////////////  第二行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 125
        width: 230
        height: 60
        border.width: 1

        Text{
            id:m_Length02_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value02
            text : Cpp_Connect.M_Length02_QR
        }
        TextInput{      // 料长输入框
            id:m_Length02_Input
            anchors.centerIn:parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(2,"LC_Value",m_Length02_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1602",m_Length02_Input.text)
                m_Length02_Input.visible = false
                m_Length02_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length02_Input.forceActiveFocus()
                m_Length02_Input.text = m_Length02_Text.text
                m_Length02_Input.visible = true
                m_Length02_Text.visible = false
                m_Length02_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 125
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle02
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle02
            // color: Cpp_QRProcess.LeftAngle02 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle02_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle02_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle02 === "45")
                // {
                //     Cpp_QRProcess.saveData(2,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle02 === "90")
                // {
                //     Cpp_QRProcess.saveData(2,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle02.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1642","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1642","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 125
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle02
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle02
            // color: Cpp_QRProcess.RightAngle02 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle02_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle02_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle02 === "45")
                // {
                //     Cpp_QRProcess.saveData(2,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle02 === "90")
                // {
                //     Cpp_QRProcess.saveData(2,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle02.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1643","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1643","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 125
        width: 230
        height: 60
        border.width: 1

        Text{
            id:count02_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count02
            text: Cpp_Connect.Count02_QR
        }

        TextInput{      // 数量输入框
            id:count02_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true

            onEditingFinished: {
                // Cpp_QRProcess.saveData(2,"Count",count_02_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1681",count02_Input.text)
                count02_Input.visible = false
                count02_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count02_Input.forceActiveFocus()
                count02_Input.visible = true
                count02_Text.visible = false
                count02_Input.text = count02_Text.text
                count02_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 125
        width: 200
        height: 60
        border.width: 1

        Text{
            id:worked_Count02_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count02_QR
        }

        TextInput{      // 已切数量输入框
            id:worked_Count02_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1701",worked_Count02_Input.text)
                worked_Count02_Input.visible = false
                worked_Count02_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count02_Input.forceActiveFocus()
                worked_Count02_Input.visible = true
                worked_Count02_Text.visible = false
                worked_Count02_Input.text = worked_Count02_Text.text
                worked_Count02_Input.selectAll()
            }
        }

    }

    /////////////  第三行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 185
        width: 230
        height: 60
        border.width: 1

        Text{
            id:m_Length03_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value03
            text : Cpp_Connect.M_Length03_QR
        }

        TextInput{
            id:m_Length03_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(3,"LC_Value",m_Length03_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1604",m_Length03_Input.text)
                m_Length03_Input.visible = false
                m_Length03_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length03_Input.forceActiveFocus()
                m_Length03_Input.text = m_Length03_Text.text
                m_Length03_Input.visible = true
                m_Length03_Text.visible = false
                m_Length03_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 185
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle03
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle03
            // color: Cpp_QRProcess.LeftAngle03 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle03_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle03_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle03 === "45")
                // {
                //     Cpp_QRProcess.saveData(3,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle03 === "90")
                // {
                //     Cpp_QRProcess.saveData(3,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle03.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1644","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1644","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 185
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle03
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle03
            // color: Cpp_QRProcess.RightAngle03 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle03_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle03_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle03 === "45")
                // {
                //     Cpp_QRProcess.saveData(3,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle03 === "90")
                // {
                //     Cpp_QRProcess.saveData(3,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle03.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1645","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1645","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 185
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count03_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count03
            text: Cpp_Connect.Count03_QR
        }

        TextInput{
            id: count03_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(3,"Count",count03_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1682",count03_Input.text)
                count03_Input.visible = false
                count03_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count03_Input.visible = true
                count03_Text.visible = false
                count03_Input.forceActiveFocus()
                count03_Input.text = count03_Text.text
                count03_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 185
        width: 200
        height: 60
        border.width: 1

        Text{
            id:worked_Count03_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count03_QR
        }

        TextInput{
            id: worked_Count03_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1702",worked_Count03_Input.text)
                worked_Count03_Input.visible = false
                worked_Count03_Text.visible = true
            }
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count03_Input.visible = true
                worked_Count03_Text.visible = false
                worked_Count03_Input.forceActiveFocus()
                worked_Count03_Input.text = worked_Count03_Text.text
                worked_Count03_Input.selectAll()
            }
        }

    }

    /////////////  第四行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 245
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length04_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value04
            text : Cpp_Connect.M_Length04_QR
        }

        TextInput{
            id: m_Length04_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(4,"LC_Value",m_Length04_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1606",m_Length04_Input.text)
                m_Length04_Input.visible = false
                m_Length04_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length04_Input.visible = true
                m_Length04_Text.visible = false
                m_Length04_Input.forceActiveFocus()
                m_Length04_Input.text = m_Length04_Text.text
                m_Length04_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 245
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle04
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle04
            // color: Cpp_QRProcess.LeftAngle04 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle04_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle04_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle04 === "45")
                // {
                //     Cpp_QRProcess.saveData(4,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle04 === "90")
                // {
                //     Cpp_QRProcess.saveData(4,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle04.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1646","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1646","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 245
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle04
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle04
            // color: Cpp_QRProcess.RightAngle04 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle04_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle04_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle04 === "45")
                // {
                //     Cpp_QRProcess.saveData(4,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle04 === "90")
                // {
                //     Cpp_QRProcess.saveData(4,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle04.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1647","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1647","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 245
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count04_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count04
            text: Cpp_Connect.Count04_QR
        }

        TextInput{
            id: count04_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true

            onEditingFinished: {
                // Cpp_QRProcess.saveData(4,"Count",count04_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1683",count04_Input.text)
                count04_Input.visible = false
                count04_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count04_Input.forceActiveFocus()
                count04_Input.text = count04_Text.text
                count04_Input.visible = true
                count04_Text.visible = false
                count04_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 245
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count04_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count04_QR
        }

        TextInput{
            id: worked_Count04_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1703",worked_Count04_Input.text)
                worked_Count04_Input.visible = false
                worked_Count04_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count04_Input.forceActiveFocus()
                worked_Count04_Input.text = worked_Count04_Text.text
                worked_Count04_Input.visible = true
                worked_Count04_Text.visible = false
                worked_Count04_Input.selectAll()
            }
        }

    }

    /////////////  第五行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 305
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length05_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value05
            text : Cpp_Connect.M_Length05_QR
        }

        TextInput{
            id: m_Length05_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(5,"LC_Value",m_Length05_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1608",m_Length05_Input.text)
                m_Length05_Input.visible = false
                m_Length05_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length05_Input.visible = true
                m_Length05_Text.visible = false
                m_Length05_Input.forceActiveFocus()
                m_Length05_Input.text = m_Length05_Text.text
                m_Length05_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 305
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle05
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle05
            // color: Cpp_QRProcess.LeftAngle05 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle05_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle05_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle05 === "45")
                // {
                //     Cpp_QRProcess.saveData(5,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle05 === "90")
                // {
                //     Cpp_QRProcess.saveData(5,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle05.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1648","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1648","0")
                }
            }
        }
    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 305
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle05
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle05
            // color: Cpp_QRProcess.RightAngle05 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle05_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle05_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle05 === "45")
                // {
                //     Cpp_QRProcess.saveData(5,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle05 === "90")
                // {
                //     Cpp_QRProcess.saveData(5,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle05.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1649","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1649","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 305
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count05_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count05
            text: Cpp_Connect.Count05_QR
        }

        TextInput{
            id: count05_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(5,"Count",count05_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1684",count05_Input.text)
                count05_Input.visible = false
                count05_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count05_Input.visible = true
                count05_Text.visible = false
                count05_Input.forceActiveFocus()
                count05_Input.text = count05_Text.text
                count05_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 305
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count05_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count05_QR
        }

        TextInput{
            id: worked_Count05_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1704",worked_Count05_Input.text)
                worked_Count05_Input.visible = false
                worked_Count05_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count05_Input.visible = true
                worked_Count05_Text.visible = false
                worked_Count05_Input.forceActiveFocus()
                worked_Count05_Input.text = worked_Count05_Text.text
                worked_Count05_Input.selectAll()
            }
        }

    }

    /////////////  第六行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 365
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length06_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value06
            text : Cpp_Connect.M_Length06_QR
        }

        TextInput{
            id: m_Length06_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(6,"LC_Value",m_Length06_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1610",m_Length06_Input.text)
                m_Length06_Input.visible = false
                m_Length06_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length06_Input.visible = true
                m_Length06_Text.visible = false
                m_Length06_Input.forceActiveFocus()
                m_Length06_Input.text = m_Length06_Text.text
                m_Length06_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 365
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle06
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle06
            // color: Cpp_QRProcess.LeftAngle06 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle06_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle06_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle06 === "45")
                // {
                //     Cpp_QRProcess.saveData(6,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle06 === "90")
                // {
                //     Cpp_QRProcess.saveData(6,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle06.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1650","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1650","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 365
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle06
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle06
            // color: Cpp_QRProcess.RightAngle06 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle06_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle06_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle06 === "45")
                // {
                //     Cpp_QRProcess.saveData(6,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle06 === "90")
                // {
                //     Cpp_QRProcess.saveData(6,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle06.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1651","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1651","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 365
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count06_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count06
            text: Cpp_Connect.Count06_QR
        }

        TextInput{
            id: count06_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(6,"Count",count06_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1685",count06_Input.text)
                count06_Input.visible = false
                count06_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count06_Input.visible = true
                count06_Text.visible = false
                count06_Input.forceActiveFocus()
                count06_Input.text = count06_Text.text
                count06_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 365
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count06_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count06_QR
        }

        TextInput{
            id: worked_Count06_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1705",worked_Count06_Input.text)
                worked_Count06_Input.visible = false
                worked_Count06_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count06_Input.visible = true
                worked_Count06_Text.visible = false
                worked_Count06_Input.forceActiveFocus()
                worked_Count06_Input.text = worked_Count06_Text.text
                worked_Count06_Input.selectAll()
            }
        }

    }

    /////////////  第七行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 425
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length07_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value07
            text : Cpp_Connect.M_Length07_QR
        }

        TextInput{
            id: m_Length07_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(7,"LC_Value",m_Length07_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1612",m_Length07_Input.text)
                m_Length07_Input.visible = false
                m_Length07_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length07_Input.visible = true
                m_Length07_Text.visible = false
                m_Length07_Input.forceActiveFocus()
                m_Length07_Input.text = m_Length07_Text.text
                m_Length07_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 425
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle07
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle07
            // color: Cpp_QRProcess.LeftAngle07 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle07_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle07_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle07 === "45")
                // {
                //     Cpp_QRProcess.saveData(7,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle07 === "90")
                // {
                //     Cpp_QRProcess.saveData(7,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle07.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1652","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1652","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 425
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle07
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle07
            // color: Cpp_QRProcess.RightAngle07 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle07_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle07_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle07 === "45")
                // {
                //     Cpp_QRProcess.saveData(7,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle07 === "90")
                // {
                //     Cpp_QRProcess.saveData(7,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle07.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1653","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1653","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 425
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count07_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count07
            text: Cpp_Connect.Count07_QR
        }

        TextInput{
            id: count07_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(7,"Count",count07_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1686",count07_Input.text)
                count07_Input.visible = false
                count07_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count07_Input.visible = true
                count07_Text.visible = false
                count07_Input.forceActiveFocus()
                count07_Input.text = count07_Text.text
                count07_Input.selectAll()
            }
        }


    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 425
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count07_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count07_QR
        }

        TextInput{
            id: worked_Count07_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1706",worked_Count07_Input.text)
                worked_Count07_Input.visible = false
                worked_Count07_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count07_Input.visible = true
                worked_Count07_Text.visible = false
                worked_Count07_Input.forceActiveFocus()
                worked_Count07_Input.text = worked_Count07_Text.text
                worked_Count07_Input.selectAll()
            }
        }

    }

    /////////////  第八行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 485
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length08_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value08
            text : Cpp_Connect.M_Length08_QR
        }

        TextInput{
            id: m_Length08_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(8,"LC_Value",m_Length08_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1614",m_Length08_Input.text)
                m_Length08_Input.visible = false
                m_Length08_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length08_Input.visible = true
                m_Length08_Text.visible = false
                m_Length08_Input.forceActiveFocus()
                m_Length08_Input.text = m_Length08_Text.text
                m_Length08_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 485
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle08
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle08
            // color: Cpp_QRProcess.LeftAngle08 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle08_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle08_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle08 === "45")
                // {
                //     Cpp_QRProcess.saveData(8,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle08 === "90")
                // {
                //     Cpp_QRProcess.saveData(8,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle08.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1654","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1654","0")
                }
            }
        }


    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 485
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle08
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle08
            // color: Cpp_QRProcess.RightAngle08 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle08_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle08_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle08 === "45")
                // {
                //     Cpp_QRProcess.saveData(8,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle08 === "90")
                // {
                //     Cpp_QRProcess.saveData(8,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle08.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1655","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1655","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 485
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count08_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count08
            text: Cpp_Connect.Count08_QR
        }

        TextInput{
            id: count08_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(8,"Count",count08_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1687",count08_Input.text)
                count08_Input.visible = false
                count08_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count08_Input.visible = true
                count08_Text.visible = false
                count08_Input.forceActiveFocus()
                count08_Input.text = count08_Text.text
                count08_Input.selectAll()
            }
        }


    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 485
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count08_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count08_QR
        }

        TextInput{
            id: worked_Count08_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1707",worked_Count08_Input.text)
                worked_Count08_Input.visible = false
                worked_Count08_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count08_Input.visible = true
                worked_Count08_Text.visible = false
                worked_Count08_Input.forceActiveFocus()
                worked_Count08_Input.text = worked_Count08_Text.text
                worked_Count08_Input.selectAll()
            }
        }

    }

    /////////////  第九行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 545
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length09_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value09
            text : Cpp_Connect.M_Length09_QR
        }

        TextInput{
            id: m_Length09_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(9,"LC_Value",m_Length09_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1616",m_Length09_Input.text)
                m_Length09_Input.visible = false
                m_Length09_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length09_Input.visible = true
                m_Length09_Text.visible = false
                m_Length09_Input.forceActiveFocus()
                m_Length09_Input.text = m_Length09_Text.text
                m_Length09_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 545
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle09
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle09
            // color: Cpp_QRProcess.LeftAngle09 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle09_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle09_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle09 === "45")
                // {
                //     Cpp_QRProcess.saveData(9,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle09 === "90")
                // {
                //     Cpp_QRProcess.saveData(9,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle09.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1656","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1656","0")
                }
            }
        }
    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 545
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle09
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle09
            // color: Cpp_QRProcess.RightAngle09 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle09_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle09_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle09 === "45")
                // {
                //     Cpp_QRProcess.saveData(9,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle09 === "90")
                // {
                //     Cpp_QRProcess.saveData(9,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle09.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1647","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1647","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 545
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count09_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count09
            text: Cpp_Connect.Count09_QR
        }

        TextInput{
            id: count09_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(9,"Count",count09_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1688",count09_Input.text)
                count09_Input.visible = false
                count09_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count09_Input.visible = true
                count09_Text.visible = false
                count09_Input.forceActiveFocus()
                count09_Input.text = count09_Text.text
                count09_Input.selectAll()
            }
        }


    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 545
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count09_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count09_QR
        }

        TextInput{
            id: worked_Count09_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1708",worked_Count09_Input.text)
                worked_Count09_Input.visible = false
                worked_Count09_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count09_Input.visible = true
                worked_Count09_Text.visible = false
                worked_Count09_Input.forceActiveFocus()
                worked_Count09_Input.text = worked_Count09_Text.text
                worked_Count09_Input.selectAll()
            }
        }

    }

    /////////////  第十行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 605
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length10_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value10
            text : Cpp_Connect.M_Length10_QR
        }

        TextInput{
            id: m_Length10_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(10,"LC_Value",m_Length10_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1618",m_Length10_Input.text)
                m_Length10_Input.visible = false
                m_Length10_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length10_Input.visible = true
                m_Length10_Text.visible = false
                m_Length10_Input.forceActiveFocus()
                m_Length10_Input.text = m_Length10_Text.text
                m_Length10_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 605
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle10
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle10
            // color: Cpp_QRProcess.LeftAngle10 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle10_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle10_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle10 === "45")
                // {
                //     Cpp_QRProcess.saveData(10,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle10 === "90")
                // {
                //     Cpp_QRProcess.saveData(10,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle10.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1658","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1658","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 605
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle10
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle10
            // color: Cpp_QRProcess.RightAngle10 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle10_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle10_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle10 === "45")
                // {
                //     Cpp_QRProcess.saveData(10,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle10 === "90")
                // {
                //     Cpp_QRProcess.saveData(10,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle10.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1659","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1659","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 605
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count10_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count10
            text: Cpp_Connect.Count10_QR
        }

        TextInput{
            id: count10_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(10,"Count",count10_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1689",count10_Input.text)
                count10_Input.visible = false
                count10_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count10_Input.visible = true
                count10_Text.visible = false
                count10_Input.forceActiveFocus()
                count10_Input.text = count10_Text.text
                count10_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 605
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count10_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count10_QR
        }

        TextInput{
            id: worked_Count10_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1709",worked_Count10_Input.text)
                worked_Count10_Input.visible = false
                worked_Count10_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count10_Input.visible = true
                worked_Count10_Text.visible = false
                worked_Count10_Input.forceActiveFocus()
                worked_Count10_Input.text = worked_Count10_Text.text
                worked_Count10_Input.selectAll()
            }
        }

    }

    /////////////  第十一行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 665
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length11_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value11
            text : Cpp_Connect.M_Length11_QR
        }

        TextInput{
            id: m_Length11_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(11,"LC_Value",m_Length11_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1620",m_Length11_Input.text)
                m_Length11_Input.visible = false
                m_Length11_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length11_Input.visible = true
                m_Length11_Text.visible = false
                m_Length11_Input.forceActiveFocus()
                m_Length11_Input.text = m_Length11_Text.text
                m_Length11_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 665
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle11
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle11
            // color: Cpp_QRProcess.LeftAngle11 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle11_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle11_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle11 === "45")
                // {
                //     Cpp_QRProcess.saveData(11,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle11 === "90")
                // {
                //     Cpp_QRProcess.saveData(11,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle11.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1660","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1660","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 665
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle11
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle11
            // color: Cpp_QRProcess.RightAngle11 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle11_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle11_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle11 === "45")
                // {
                //     Cpp_QRProcess.saveData(11,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle11 === "90")
                // {
                //     Cpp_QRProcess.saveData(11,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle11.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1661","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1661","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 665
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count11_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count11
            text: Cpp_Connect.Count11_QR
        }

        TextInput{
            id: count11_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(11,"Count",count11_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1690",count11_Input.text)
                count11_Input.visible = false
                count11_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count11_Input.visible = true
                count11_Text.visible = false
                count11_Input.forceActiveFocus()
                count11_Input.text = count11_Text.text
                count11_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 665
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count11_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count11_QR
        }

        TextInput{
            id: worked_Count11_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1710",worked_Count11_Input.text)
                worked_Count11_Input.visible = false
                worked_Count11_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count11_Input.visible = true
                worked_Count11_Text.visible = false
                worked_Count11_Input.forceActiveFocus()
                worked_Count11_Input.text = worked_Count11_Text.text
                worked_Count11_Input.selectAll()
            }
        }

    }

    /////////////  第十二行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 725
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length12_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value12
            text : Cpp_Connect.M_Length12_QR
        }

        TextInput{
            id: m_Length12_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(12,"LC_Value",m_Length12_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1622",m_Length12_Input.text)
                m_Length12_Input.visible = false
                m_Length12_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length12_Input.visible = true
                m_Length12_Text.visible = false
                m_Length12_Input.forceActiveFocus()
                m_Length12_Input.text = m_Length12_Text.text
                m_Length12_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 725
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle12
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle12
            // color: Cpp_QRProcess.LeftAngle12 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle12_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle12_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle12 === "45")
                // {
                //     Cpp_QRProcess.saveData(12,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle12 === "90")
                // {
                //     Cpp_QRProcess.saveData(12,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle12.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1662","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1662","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 725
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle12
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle12
            // color: Cpp_QRProcess.RightAngle12 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle12_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle12_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle12 === "45")
                // {
                //     Cpp_QRProcess.saveData(12,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle12 === "90")
                // {
                //     Cpp_QRProcess.saveData(12,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle12.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1663","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1663","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 725
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count12_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count12
            text: Cpp_Connect.Count12_QR
        }

        TextInput{
            id: count12_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(12,"Count",count12_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1691",count12_Input.text)
                count12_Input.visible = false
                count12_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count12_Input.visible = true
                count12_Text.visible = false
                count12_Input.forceActiveFocus()
                count12_Input.text = count12_Text.text
                count12_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 725
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count12_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count12_QR
        }

        TextInput{
            id: worked_Count12_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1711",worked_Count12_Input.text)
                worked_Count12_Input.visible = false
                worked_Count12_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count12_Input.visible = true
                worked_Count12_Text.visible = false
                worked_Count12_Input.forceActiveFocus()
                worked_Count12_Input.text = worked_Count12_Text.text
                worked_Count12_Input.selectAll()
            }
        }

    }

    /////////////  第十三行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 785
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length13_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value13
            text : Cpp_Connect.M_Length13_QR
        }

        TextInput{
            id: m_Length13_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(13,"LC_Value",m_Length13_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1624",m_Length13_Input.text)
                m_Length13_Input.visible = false
                m_Length13_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length13_Input.visible = true
                m_Length13_Text.visible = false
                m_Length13_Input.forceActiveFocus()
                m_Length13_Input.text = m_Length13_Text.text
                m_Length13_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 785
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle13
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle13
            // color: Cpp_QRProcess.LeftAngle13 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle13_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle13_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle13 === "45")
                // {
                //     Cpp_QRProcess.saveData(13,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle13 === "90")
                // {
                //     Cpp_QRProcess.saveData(13,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle13.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1664","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1664","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 785
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle13
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle13
            // color: Cpp_QRProcess.RightAngle13 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle13_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle13_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle13 === "45")
                // {
                //     Cpp_QRProcess.saveData(13,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle13 === "90")
                // {
                //     Cpp_QRProcess.saveData(13,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle13.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1665","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1665","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 785
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count13_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count13
            text: Cpp_Connect.Count13_QR
        }

        TextInput{
            id: count13_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(13,"Count",count13_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1692",count13_Input.text)
                count13_Input.visible = false
                count13_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count13_Input.visible = true
                count13_Text.visible = false
                count13_Input.forceActiveFocus()
                count13_Input.text = count13_Text.text
                count13_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 785
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count13_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count13_QR
        }

        TextInput{
            id: worked_Count13_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1712",worked_Count13_Input.text)
                worked_Count13_Input.visible = false
                worked_Count13_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count13_Input.visible = true
                worked_Count13_Text.visible = false
                worked_Count13_Input.forceActiveFocus()
                worked_Count13_Input.text = worked_Count13_Text.text
                worked_Count13_Input.selectAll()
            }
        }

    }

    /////////////  第十四行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 845
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length14_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value14
            text : Cpp_Connect.M_Length14_QR
        }

        TextInput{
            id: m_Length14_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(14,"LC_Value",m_Length14_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1626",m_Length14_Input.text)
                m_Length14_Input.visible = false
                m_Length14_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length14_Input.visible = true
                m_Length14_Text.visible = false
                m_Length14_Input.forceActiveFocus()
                m_Length14_Input.text = m_Length14_Text.text
                m_Length14_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 845
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle14
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle14
            // color: Cpp_QRProcess.LeftAngle14 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle14_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle14_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle14 === "45")
                // {
                //     Cpp_QRProcess.saveData(14,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle14 === "90")
                // {
                //     Cpp_QRProcess.saveData(14,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle14.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1666","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1666","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 845
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle14
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle14
            // color: Cpp_QRProcess.RightAngle14 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle14_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle14_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle14 === "45")
                // {
                //     Cpp_QRProcess.saveData(14,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle14 === "90")
                // {
                //     Cpp_QRProcess.saveData(14,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle14.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1667","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1667","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 845
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count14_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count14
            text: Cpp_Connect.Count14_QR
        }

        TextInput{
            id: count14_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(14,"Count",count14_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1693",count14_Input.text)
                count14_Input.visible = false
                count14_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count14_Input.visible = true
                count14_Text.visible = false
                count14_Input.forceActiveFocus()
                count14_Input.text = count14_Text.text
                count14_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 845
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count14_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count14_QR
        }

        TextInput{
            id: worked_Count14_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1713",worked_Count14_Input.text)
                worked_Count14_Input.visible = false
                worked_Count14_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count14_Input.visible = true
                worked_Count14_Text.visible = false
                worked_Count14_Input.forceActiveFocus()
                worked_Count14_Input.text = worked_Count14_Text.text
                worked_Count14_Input.selectAll()
            }
        }

    }

    /////////////  第十五行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 905
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length15_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value15
            text : Cpp_Connect.M_Length15_QR
        }

        TextInput{
            id: m_Length15_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(15,"LC_Value",m_Length15_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1628",m_Length15_Input.text)
                m_Length15_Input.visible = false
                m_Length15_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length15_Input.visible = true
                m_Length15_Text.visible = false
                m_Length15_Input.forceActiveFocus()
                m_Length15_Input.text = m_Length15_Text.text
                m_Length15_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 905
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle15
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle15
            // color: Cpp_QRProcess.LeftAngle15 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle15_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle15_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle15 === "45")
                // {
                //     Cpp_QRProcess.saveData(15,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle15 === "90")
                // {
                //     Cpp_QRProcess.saveData(15,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle15.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1668","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1668","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 905
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle15
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle15
            // color: Cpp_QRProcess.RightAngle15 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle15_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle15_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle15 === "45")
                // {
                //     Cpp_QRProcess.saveData(15,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle15 === "90")
                // {
                //     Cpp_QRProcess.saveData(15,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle15.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1669","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1669","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 905
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count15_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count15
            text: Cpp_Connect.Count15_QR
        }

        TextInput{
            id: count15_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(15,"Count",count15_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1694",count15_Input.text)
                count15_Input.visible = false
                count15_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count15_Input.visible = true
                count15_Text.visible = false
                count15_Input.forceActiveFocus()
                count15_Input.text = count15_Text.text
                count15_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 905
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count15_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count15_QR
        }

        TextInput{
            id: worked_Count15_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1714",worked_Count15_Input.text)
                worked_Count15_Input.visible = false
                worked_Count15_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count15_Input.visible = true
                worked_Count15_Text.visible = false
                worked_Count15_Input.forceActiveFocus()
                worked_Count15_Input.text = worked_Count15_Text.text
                worked_Count15_Input.selectAll()
            }
        }

    }

    /////////////  第十六行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 965
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length16_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value16
            text : Cpp_Connect.M_Length16_QR
        }

        TextInput{
            id: m_Length16_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(16,"LC_Value",m_Length16_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1630",m_Length16_Input.text)
                m_Length16_Input.visible = false
                m_Length16_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length16_Input.visible = true
                m_Length16_Text.visible = false
                m_Length16_Input.forceActiveFocus()
                m_Length16_Input.text = m_Length16_Text.text
                m_Length16_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 965
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle16
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle16
            // color: Cpp_QRProcess.LeftAngle16 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle16_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle16_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle16 === "45")
                // {
                //     Cpp_QRProcess.saveData(16,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle16 === "90")
                // {
                //     Cpp_QRProcess.saveData(16,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle16.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1670","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1670","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 965
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle16
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle16
            // color: Cpp_QRProcess.RightAngle16 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle16_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle16_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle16 === "45")
                // {
                //     Cpp_QRProcess.saveData(16,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle16 === "90")
                // {
                //     Cpp_QRProcess.saveData(16,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle16.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1671","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1671","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 965
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count16_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count16
            text: Cpp_Connect.Count16_QR
        }

        TextInput{
            id: count16_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(16,"Count",count16_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1695",count16_Input.text)
                count16_Input.visible = false
                count16_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count16_Input.visible = true
                count16_Text.visible = false
                count16_Input.forceActiveFocus()
                count16_Input.text = count16_Text.text
                count16_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 965
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count16_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count16_QR
        }

        TextInput{
            id: worked_Count16_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1715",worked_Count16_Input.text)
                worked_Count16_Input.visible = false
                worked_Count16_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count16_Input.visible = true
                worked_Count16_Text.visible = false
                worked_Count16_Input.forceActiveFocus()
                worked_Count16_Input.text = worked_Count16_Text.text
                worked_Count16_Input.selectAll()
            }
        }

    }

    /////////////  第十七行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 1025
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length17_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value17
            text : Cpp_Connect.M_Length17_QR
        }

        TextInput{
            id: m_Length17_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(17,"LC_Value",m_Length17_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1632",m_Length17_Input.text)
                m_Length17_Input.visible = false
                m_Length17_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length17_Input.visible = true
                m_Length17_Text.visible = false
                m_Length17_Input.forceActiveFocus()
                m_Length17_Input.text = m_Length17_Text.text
                m_Length17_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 1025
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle17
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle17
            // color: Cpp_QRProcess.LeftAngle17 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle17_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle17_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle17 === "45")
                // {
                //     Cpp_QRProcess.saveData(17,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle17 === "90")
                // {
                //     Cpp_QRProcess.saveData(17,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle17.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1672","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1672","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 1025
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle17
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle17
            // color: Cpp_QRProcess.RightAngle17 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle17_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle17_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle17 === "45")
                // {
                //     Cpp_QRProcess.saveData(17,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle17 === "90")
                // {
                //     Cpp_QRProcess.saveData(17,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle17.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1673","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1673","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 1025
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count17_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count17
            text: Cpp_Connect.Count17_QR
        }

        TextInput{
            id: count17_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(17,"Count",count17_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1696",count17_Input.text)
                count17_Input.visible = false
                count17_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count17_Input.visible = true
                count17_Text.visible = false
                count17_Input.forceActiveFocus()
                count17_Input.text = count17_Text.text
                count17_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 1025
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count17_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count17_QR
        }

        TextInput{
            id: worked_Count17_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1716",worked_Count17_Input.text)
                worked_Count17_Input.visible = false
                worked_Count17_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count17_Input.visible = true
                worked_Count17_Text.visible = false
                worked_Count17_Input.forceActiveFocus()
                worked_Count17_Input.text = worked_Count17_Text.text
                worked_Count17_Input.selectAll()
            }
        }

    }

    /////////////  第十八行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 1085
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length18_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value18
            text : Cpp_Connect.M_Length18_QR
        }

        TextInput{
            id: m_Length18_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(18,"LC_Value",m_Length18_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1634",m_Length18_Input.text)
                m_Length18_Input.visible = false
                m_Length18_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length18_Input.visible = true
                m_Length18_Text.visible = false
                m_Length18_Input.forceActiveFocus()
                m_Length18_Input.text = m_Length18_Text.text
                m_Length18_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 1085
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle18
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle18
            // color: Cpp_QRProcess.LeftAngle18 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle18_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle18_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle18 === "45")
                // {
                //     Cpp_QRProcess.saveData(18,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle18 === "90")
                // {
                //     Cpp_QRProcess.saveData(18,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle18.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1674","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1674","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 1085
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle18
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle18
            // color: Cpp_QRProcess.RightAngle18 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle18_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle18_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle18 === "45")
                // {
                //     Cpp_QRProcess.saveData(18,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle18 === "90")
                // {
                //     Cpp_QRProcess.saveData(18,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle18.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1675","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1675","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 1085
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count18_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count18
            text: Cpp_Connect.Count18_QR
        }

        TextInput{
            id: count18_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(18,"Count",count18_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1697",count18_Input.text)
                count18_Input.visible = false
                count18_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count18_Input.visible = true
                count18_Text.visible = false
                count18_Input.forceActiveFocus()
                count18_Input.text = count18_Text.text
                count18_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 1085
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count18_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count18_QR
        }

        TextInput{
            id: worked_Count18_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1717",worked_Count18_Input.text)
                worked_Count18_Input.visible = false
                worked_Count18_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count18_Input.visible = true
                worked_Count18_Text.visible = false
                worked_Count18_Input.forceActiveFocus()
                worked_Count18_Input.text = worked_Count18_Text.text
                worked_Count18_Input.selectAll()
            }
        }

    }

    /////////////  第十九行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 1145
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length19_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value19
            text : Cpp_Connect.M_Length19_QR
        }

        TextInput{
            id: m_Length19_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(19,"LC_Value",m_Length19_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1636",m_Length19_Input.text)
                m_Length19_Input.visible = false
                m_Length19_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length19_Input.visible = true
                m_Length19_Text.visible = false
                m_Length19_Input.forceActiveFocus()
                m_Length19_Input.text = m_Length19_Text.text
                m_Length19_Input.selectAll()
            }
        }

    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 1145
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle19
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle19
            // color: Cpp_QRProcess.LeftAngle19 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle19_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle19_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle19 === "45")
                // {
                //     Cpp_QRProcess.saveData(19,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle19 === "90")
                // {
                //     Cpp_QRProcess.saveData(19,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle19.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1676","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1676","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 1145
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle19
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle19
            // color: Cpp_QRProcess.RightAngle19 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle19_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle19_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle19 === "45")
                // {
                //     Cpp_QRProcess.saveData(19,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle19 === "90")
                // {
                //     Cpp_QRProcess.saveData(19,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle19.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1677","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1677","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 1145
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count19_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count19
            text: Cpp_Connect.Count19_QR
        }

        TextInput{
            id: count19_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(19,"Count",count19_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1698",count19_Input.text)
                count19_Input.visible = false
                count19_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count19_Input.visible = true
                count19_Text.visible = false
                count19_Input.forceActiveFocus()
                count19_Input.text = count19_Text.text
                count19_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 1145
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count19_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count19_QR
        }

        TextInput{
            id: worked_Count19_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1718",worked_Count19_Input.text)
                worked_Count19_Input.visible = false
                worked_Count19_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count19_Input.visible = true
                worked_Count19_Text.visible = false
                worked_Count19_Input.forceActiveFocus()
                worked_Count19_Input.text = worked_Count19_Text.text
                worked_Count19_Input.selectAll()
            }
        }

    }

    /////////////  第二十行  /////////////

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 115
        anchors.top: backGround.top
        anchors.topMargin: 1205
        width: 230
        height: 60
        border.width: 1

        Text{
            id: m_Length20_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.LC_Value20
            text : Cpp_Connect.M_Length20_QR
        }

        TextInput{
            id: m_Length20_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(20,"LC_Value",m_Length20_Input.text);
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold_F("1638",m_Length20_Input.text)
                m_Length20_Input.visible = false
                m_Length20_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                m_Length20_Input.visible = true
                m_Length20_Text.visible = false
                m_Length20_Input.forceActiveFocus()
                m_Length20_Input.text = m_Length20_Text.text
                m_Length20_Input.selectAll()
            }
        }
    }

    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 345
        anchors.top: backGround.top
        anchors.topMargin: 1205
        width: 150
        height: 60
        border.width: 1

        Text {      //左角度
            id:leftAngle20
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.LeftAngle20
            // color: Cpp_QRProcess.LeftAngle20 === "90" ? "red" : "black"
            text: Cpp_Connect.LeftAngle20_QR === "1" ? "90" : "45"
            color: Cpp_Connect.LeftAngle20_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.LeftAngle20 === "45")
                // {
                //     Cpp_QRProcess.saveData(20,"LeftAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.LeftAngle20 === "90")
                // {
                //     Cpp_QRProcess.saveData(20,"LeftAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(leftAngle20.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1678","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1678","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 495
        anchors.top: backGround.top
        anchors.topMargin: 1205
        width: 150
        height: 60
        border.width: 1

        Text {      // 右角度
            id:rightAngle20
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            // text: Cpp_QRProcess.RightAngle20
            // color: Cpp_QRProcess.RightAngle20 === "90" ? "red" : "black"
            text: Cpp_Connect.RightAngle20_QR === "1" ? "90" : "45"
            color: Cpp_Connect.RightAngle20_QR === "1" ? "red" : "black"
        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                parent.forceActiveFocus()
                // if(Cpp_QRProcess.RightAngle20 === "45")
                // {
                //     Cpp_QRProcess.saveData(20,"RightAngle","90")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                // else if(Cpp_QRProcess.RightAngle20 === "90")
                // {
                //     Cpp_QRProcess.saveData(20,"RightAngle","45")
                //     Cpp_QRProcess.getAllParameterFromSQL()
                // }
                if(rightAngle20.text === "45")
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1679","1")
                }
                else
                {
                    Cpp_Connect.write_modbus_rtu_Hold("1679","0")
                }
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 645
        anchors.top: backGround.top
        anchors.topMargin: 1205
        width: 230
        height: 60
        border.width: 1

        Text{
            id: count20_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            // text: Cpp_QRProcess.Count20
            text: Cpp_Connect.Count20_QR
        }

        TextInput{
            id: count20_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                // Cpp_QRProcess.saveData(20,"Count",count20_Input.text)
                // Cpp_QRProcess.getAllParameterFromSQL();
                Cpp_Connect.write_modbus_rtu_Hold("1699",count20_Input.text)
                count20_Input.visible = false
                count20_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                count20_Input.visible = true
                count20_Text.visible = false
                count20_Input.forceActiveFocus()
                count20_Input.text = count20_Text.text
                count20_Input.selectAll()
            }
        }

    }
    Rectangle{
        anchors.left: backGround.left
        anchors.leftMargin: 875
        anchors.top: backGround.top
        anchors.topMargin: 1205
        width: 200
        height: 60
        border.width: 1

        Text{
            id: worked_Count20_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: true
            text: Cpp_Connect.Worked_Count20_QR
        }

        TextInput{
            id: worked_Count20_Input
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            visible: false

            onEditingFinished: {
                Cpp_Connect.write_modbus_rtu_Hold("1719",worked_Count20_Input.text)
                worked_Count20_Input.visible = false
                worked_Count20_Text.visible = true
            }

        }

        MouseArea{
            anchors.fill: parent

            onClicked: {
                worked_Count20_Input.visible = true
                worked_Count20_Text.visible = false
                worked_Count20_Input.forceActiveFocus()
                worked_Count20_Input.text = worked_Count20_Text.text
                worked_Count20_Input.selectAll()
            }
        }

    }



    Rectangle{      // 二维码扫描设定及结果
        width: backGround.width
        height: 170
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: backGround.top
        anchors.topMargin: 1265
        color: "#00BFFF"
        border.width: 5
        border.color: "#F0F8FF"
        visible: true

        Text{
            anchors.left: parent.left
            anchors.leftMargin: 30
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 30
            font.bold: true
            text:qsTr("二维码类型")

            MouseArea{
                id:testBtn
                anchors.fill: parent

                onClicked: {
                    Cpp_QRProcess.getAllParameterFromSQL();

                }

            }

        }

        ComboBox{       // 二维码类型选择
            id:qrType
            anchors.left: parent.left
            anchors.leftMargin: 200
            anchors.verticalCenter: parent.verticalCenter
            width: 300
            height: 60
            model:["长风软件","速制软件","画门窗软件","创品软件"]
            currentIndex: 0

            contentItem: Text {     //界面上显示出来的文字
                leftPadding: 20      //左部填充为5
                text: qrType.displayText   //表示ComboBox上显示的文本
                // font: qrType.font          //文字大小
                font.pixelSize: 30
                color: qrType.enabled ? "black" : "grey"   //qrType.pressed ?
                verticalAlignment: Text.AlignVCenter        //文字位置
            }

            background: Rectangle {   //背景项
                implicitWidth: 120
                implicitHeight: 60
                property string sColor: qrType.enabled ? "white" : "lightgrey"
                color: qrType.pressed ? Qt.darker(sColor, 1.2) : sColor
                border.width: 1
                border.color: "lightgrey"
                radius: 0
            }


            onActivated: {
                Cpp_Connect.QRTYPE = currentIndex
            }
        }


        Text{
            anchors.left: parent.left
            anchors.leftMargin: 650
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 30
            font.bold: true
            text:qsTr("当前位置")
        }

        Rectangle{
            anchors.left: parent.left
            anchors.leftMargin: 800
            anchors.verticalCenter: parent.verticalCenter
            width: 200
            height: 100
            radius: 10
            color: "black"
            border.width: 1
            border.color: "#F0F8FF"

            Text{       // 当前位置显示
                id:currentLocation_Text
                anchors.centerIn: parent
                font.pixelSize: 30
                font.bold: true
                color: "aqua"
                visible: true
                text: Cpp_Connect.currentLocation
            }
        }


    }

    Rectangle{
        width: backGround.width
        height: 170
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: backGround.top
        anchors.topMargin: 1430
        color: "#00BFFF"
        border.width: 5
        border.color: "#F0F8FF"        

        Text{
            anchors.left: parent.left
            anchors.leftMargin: 30
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 30
            font.bold: true
            visible: !Cpp_Connect.NBWB_Mode
            text:qsTr("料高设定")
        }

        Rectangle{
            anchors.left: parent.left
            anchors.leftMargin: 200
            anchors.verticalCenter: parent.verticalCenter
            width: 200
            height: 100
            radius: 10
            border.width: 1
            visible: !Cpp_Connect.NBWB_Mode
            border.color: "#F0F8FF"

            Text{
                id:lgSetting_Text
                anchors.centerIn: parent
                font.pixelSize: 30
                font.bold: true
                visible: true
                text: Cpp_Connect.LG_value
            }

            TextInput{      // 料高设定输入框
                id: lgSetting_Input
                anchors.centerIn: parent
                font.pixelSize: 30
                font.bold: true
                font.italic: true
                maximumLength: 10
                visible: false
                text: lgSetting_Text.text

                onEditingFinished: {
                    Cpp_Connect.write_modbus_rtu_Hold_F("214",lgSetting_Input.text);
                    lgSetting_Text.visible = true
                    lgSetting_Input.visible = false
                }
            }

            MouseArea{
                anchors.fill: parent

                onClicked: {
                    lgSetting_Input.forceActiveFocus()
                    lgSetting_Text.visible = false
                    lgSetting_Input.visible = true
                    lgSetting_Input.selectAll()
                }
            }
        }

        Rectangle{      // 压紧按钮
            width: 220
            height: 100
            radius: 10
            color: processWindow.impactState ?  "#ff3606" : "#006cee"
            border.width: 1
            border.color: "#F0F8FF"
            anchors.verticalCenter: parent.verticalCenter
            anchors.left: parent.left
            anchors.leftMargin: 510

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                text:qsTr("压 紧")
            }

            MouseArea{
                anchors.fill: parent

                onPressed: {
                    parent.forceActiveFocus()
                    Cpp_Connect.write_modbus_rtu_Coils("236","1");

                }

                onReleased: {
                    Cpp_Connect.write_modbus_rtu_Coils("236","0");
                }
            }

        }

        Rectangle{      // 锯片工进按钮
            width: 220
            height: 100
            radius: 10
            color: processWindow.gjState ? "#ff3606" : "#006cee"
            border.width: 1
            border.color: "#F0F8FF"
            anchors.verticalCenter: parent.verticalCenter
            anchors.left: parent.left
            anchors.leftMargin: 770

            Text{
                anchors.centerIn: parent
                font.pixelSize: 40
                font.bold: true
                text:qsTr("锯片工进")
            }

            MouseArea{
                anchors.fill: parent

                onPressed: {
                    parent.forceActiveFocus()
                    parent.color = "#ff3606"
                    Cpp_Connect.write_modbus_rtu_Coils("238","1");
                }

                onReleased: {
                    parent.color = "#006cee"
                    Cpp_Connect.write_modbus_rtu_Coils("238","0");
                }
            }

        }



    }


    Rectangle{
        width: backGround.width
        height: 170
        anchors.horizontalCenter: backGround.horizontalCenter
        anchors.top: backGround.top
        anchors.topMargin: 1430
        color: "#00BFFF"
        // color: "red"
        visible: false
        border.width: 5
        border.color: "#F0F8FF"



        Text{
            anchors.left: parent.left
            anchors.leftMargin: 30
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 30
            font.bold: true
            text:qsTr("M172")
        }

        Rectangle{
            anchors.left: parent.left
            anchors.leftMargin: 150
            anchors.verticalCenter: parent.verticalCenter
            width: 200
            height: 100
            radius: 10
            color: "black"
            border.width: 1
            border.color: "#F0F8FF"

            Text{       //
                // id:currentLocation_Text
                anchors.centerIn: parent
                font.pixelSize: 30
                font.bold: true
                color: "aqua"
                visible: true
                text: Cpp_Connect.M_172
            }
        }


        Text{
            anchors.left: parent.left
            anchors.leftMargin: 400
            anchors.verticalCenter: parent.verticalCenter
            font.pixelSize: 30
            font.bold: true
            text:qsTr("M46")
        }

        Rectangle{
            anchors.left: parent.left
            anchors.leftMargin: 500
            anchors.verticalCenter: parent.verticalCenter
            width: 200
            height: 100
            radius: 10
            color: "black"
            border.width: 1
            border.color: "#F0F8FF"

            Text{       //
                // id:currentLocation_Text
                anchors.centerIn: parent
                font.pixelSize: 30
                font.bold: true
                color: "aqua"
                visible: true
                text: Cpp_Connect.M_46
            }
        }


        Text{
          anchors.left: parent.left
          anchors.leftMargin: 730
          anchors.verticalCenter: parent.verticalCenter
          font.pixelSize: 30
          font.bold: true
          text:qsTr("D156")
        }

        Rectangle{
          anchors.left: parent.left
          anchors.leftMargin: 800
          anchors.verticalCenter: parent.verticalCenter
          width: 200
          height: 100
          radius: 10
          color: "black"
          border.width: 1
          border.color: "#F0F8FF"

          Text{       //
            // id:currentLocation_Text
            anchors.centerIn: parent
            font.pixelSize: 30
            font.bold: true
            color: "aqua"
            visible: true
            text: Cpp_Connect.D_156
          }
        }




    }





}
